//
//  GoodStandardView.h
//  B2C
//
//  Created by xiaowu on 2017/8/2.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GoodDetailModel.h"

typedef NS_ENUM(NSInteger ,GoodStandardViewType) {
    GoodStandardViewTypeForAddCart,
    GoodStandardViewTypeForBuy,
    GoodStandardViewTypeForAll,
    GoodStandardViewTypeEditCart,
    GoodStandardViewTypeIntegral,   // 积分商品
    GoodStandardViewTypeGroup,      // 团购买
    GoodStandardViewTypeGroupAlone, // 单独买
    GoodStandardViewTypeGroupAll,   // 团购选属性
    GoodStandardViewTypeNearby,     // 附近门店
};

@interface GoodStandardView : UIView

/**
 @brief 显示规格方法

 @param title 商品名称
 @param price 价格/积分
 @param pgprice 团购价格
 @param imageUrl 小图
 @param attribute 原始规格列表
 @param goodsattribute 属性价格
 @param type 颜色类型
 @return GoodStandardView
 */
+ (GoodStandardView *)showGoodStandardViewWithTitle:(NSString *)title
                                              price:(NSString *)price
                                            pgprice:(NSString *)pgprice
                                              count:(NSString *)count
                                           imageURL:(NSString *)imageUrl
                              goodAttributeModelArr:(NSArray <GoodAttributeModel *> *)attribute
                        goodsAttributePriceModelArr:(NSArray <GoodsAttributePriceModel *> *)goodsattribute
                                               type:(GoodStandardViewType)type
                                          needReset:(BOOL)need
                                              block:(void (^)(NSInteger buttonIndex, NSMutableArray <GoodAttributeValueModel *> *arr,  GoodsAttributePriceModel *priceModel, NSString *count))block;

@property (nonatomic, copy) void (^block)(NSInteger buttonIndex, NSMutableArray *arr, GoodsAttributePriceModel *priceModel , NSString *count);
@end
